package com.iverson.message;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;;

@Component
public class ProducerSimple {

    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    public void sendSyncMsg(String topic, String msg){
        rocketMQTemplate.syncSend(topic,msg);
    }
}
